// 部署配置接口
export interface DeploymentConfig {
  id?: string
  projectName: string
  repoUrl: string
  branch: string
  deployPath: string
  buildCommand: string
  preDeployCommand?: string
  postDeployCommand?: string
  status?: 'pending' | 'deploying' | 'success' | 'failed'
  createdAt?: string
  updatedAt?: string
}

// 服务器配置接口
export interface ServerConfig {
  host: string
  port: number
  username: string
  authType: 'password' | 'privateKey'
  password?: string
  privateKeyPath?: string
  passphrase?: string
}

// 部署统计接口
export interface DeploymentStats {
  total: number
  success: number
  failed: number
}

// 日志接口
export interface LogEntry {
  id: string
  message: string
  type: 'info' | 'error' | 'warning'
  timestamp: string
}

// API 响应接口
export interface ApiResponse<T = any> {
  success?: boolean
  data?: T
  error?: string
  message?: string
}
